home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------
- //JavaScript Code For Navigator 4+ and Internet Explorer 4+
- //
- //---------------------------------------------------------
- // Moving Ticker Object Right
- //
- // signe_browser=0: Navigator 4
- // signe-browser=1: Internet Explorer 4
- // ly: Ticker Object
- // ntxtticker: Number of Ticker or Object
- // contticker: counter ticker countticker=1 initial value
- // tickerRight: ticker position
- // tickerRight=0 initial value for Netscape
- // signe_up=0 Initialization
- // stepRight: pixel size for each moving ticker
- // dis1: limit position in left
- // dis2: limit position in right
- // timer: timeout for moving ticker in millisesigne_move
- // ex: mvtickerRight(nbrowser,'copyright',3,1,0,0,5,-200,560,100);
- //----------------------------------------------------------
-
-
- var timeout_id_mvtickerRightL2=new initArray();
-
- function mvtickerRightL2(signe_browser,nid,signe_move,ly1,ly2,ntxtticker,countticker,tickerRight,signe_up,stepRight,dis1,dis2,timer){
-
- if (signe_move=='true') {
- if (signe_up==0) {
- signe_up=1;
- var NameDIV=eval("'"+ly2+1+"'");
- if (signe_browser==0) document[ly1].document[ly2].document[NameDIV].visibility="inherit";
- if (signe_browser==1) document.all[ly1].document.all[ly2].document.all[NameDIV].style.visibility="inherit";
- }
-
- if (tickerRight >= dis2 ) {
- tickerRight= dis1;
- if (ntxtticker > 1){
- var NameDIV=eval("'"+ly2+countticker+"'");
- if (signe_browser==0) document[ly1].document[ly2].document[NameDIV].visibility="hidden";
- if (signe_browser==1) document.all[ly1].document.all[ly2].document.all[NameDIV].style.visibility="hidden";
- countticker=countticker+1;
- if (countticker==ntxtticker+1) countticker=1;
- var NameDIV=eval("'"+ly2+countticker+"'");
- if (signe_browser==0) document[ly1].document[ly2].document[NameDIV].visibility="inherit";
- if (signe_browser==1) document.all[ly1].document.all[ly2].document.all[NameDIV].style.visibility="inherit";
- }
- }
-
- if (tickerRight < dis2 ) {
- tickerRight=tickerRight+stepRight;
- var NameDIV=eval("'"+ly2+countticker+"'");
- if (signe_browser==0) document[ly1].document[ly2].document[NameDIV].left=tickerRight;
- if (signe_browser==1) document.all[ly1].document.all[ly2].document.all[NameDIV].style.left=tickerRight;
- timeout_id_mvtickerRightL2[nid]=setTimeout("mvtickerRightL2("+signe_browser+","+nid+",'"+signe_move+"','"+ly1+"','"+ly2+"',"+ntxtticker+","+countticker+","+tickerRight+","+signe_up+" ,"+stepRight+","+dis1+","+dis2+","+timer+")", timer);
- return;
- }
- }else{
- clearTimeout(timeout_id_mvtickerRightL2[nid]);
- timeout_id_mvtickerRightL2[nid]=null;
- }
-
- }
-
-
-